﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace SV
{
    using WS.BLL;
    using WS.DAL;
    using WS.DAL.Entities;
    public class Catalog
    {
        #region Danh muc
        DanhmucBLL _bllDanhmuc = new DanhmucBLL();

        public DataTable Danhmuc_Select()
        {
            return _bllDanhmuc.Select();
        }

        public object Danhmuc_Insert(Danhmuc obj)
        {
            return _bllDanhmuc.Insert(obj);
        }

        public object Danhmuc_Update(Danhmuc obj)
        {
            return _bllDanhmuc.Update(obj);
        }

        public object Danhmuc_Delete(Guid id)
        {
            return _bllDanhmuc.Delete(id);
        }

        public DataTable Danhmuc_Select_Loai(string loai)
        {
            return _bllDanhmuc.Select_Loai(loai);
        }

        public DataTable Danhmuc_Select_Parent(Guid id)
        {
            return _bllDanhmuc.Select_Parent(id);
        }

        public string Danhmuc_Layma(string Loai)
        {
            return _bllDanhmuc.Layma(Loai);
        }
        #endregion
    }
}
